package com.lmt_14;

import java.io.PrintStream;
import java.nio.charset.Charset;

public class PrintStreamTest {
    public static void main(String[] args) {
        try(
                PrintStream ps= new PrintStream("src/com/lmt_14/1.txt", String.valueOf(Charset.forName("GBK")));
                // PrintStream ps= new PrintStream("src/com/lmt_14/1.txt");
                ){
                ps.println(78);
                ps.println(24);
                ps.println(true);
                ps.println("fggfdxb ");

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
